package com.example.sjly.ui.scheduling.room;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.Ignore;
import androidx.room.Index;
import androidx.room.PrimaryKey;

import static android.os.Build.UNKNOWN;
//填写界面


@Entity(tableName = "TOrderMessageIn")
public class TOrderIn {
    @PrimaryKey(autoGenerate =true)
    private int id;//用于做主码，不显示
    private String TeacherName;//设置原因：教师姓名（可以替他人下单）
    private String UserName;//用户名
    private String AddressMess;//拍摄地址信息
    private String TeacherPhone;//设置原因：教师可以有不同手机号码（或替他人下单）
    private String TeacherEmali;//设置原因：教师可以有不同的邮箱（或者替他人下单)



    public TOrderIn(String userName,String teacherName, String addressMess, String teacherPhone, String teacherEmali) {
        UserName=userName;
        TeacherName = teacherName;
        AddressMess = addressMess;
        TeacherPhone = teacherPhone;
        TeacherEmali = teacherEmali;
    }



    public TOrderIn() {
    this.id=0;
    this.TeacherName=UNKNOWN;
    this.AddressMess=UNKNOWN;
    this.TeacherPhone=UNKNOWN;
    this.TeacherEmali=UNKNOWN;
    }

    @Override
    public String toString() {
        return "TOrderIn{" +
                "id=" + id +
                ", TeacherName='" + TeacherName + '\'' +
                ", AddressMess='" + AddressMess + '\'' +
                ", TeacherPhone='" + TeacherPhone + '\'' +
                ", TeacherEmali='" + TeacherEmali + '\'' +
                '}';
    }
    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTeacherName() {
        return TeacherName;
    }

    public void setTeacherName(String teacherName) {
        TeacherName = teacherName;
    }

    public String getAddressMess() {
        return AddressMess;
    }

    public void setAddressMess(String addressMess) {
        AddressMess = addressMess;
    }

    public String getTeacherPhone() {
        return TeacherPhone;
    }

    public void setTeacherPhone(String teacherPhone) {
        TeacherPhone = teacherPhone;
    }

    public String getTeacherEmali() {
        return TeacherEmali;
    }

    public void setTeacherEmali(String teacherEmali) {
        TeacherEmali = teacherEmali;
    }
}

